﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LawCaseMaterialUserControl.ascx.cs"
    Inherits="JM.JCY.SharePointComponent.LawArchives.LawCaseMaterial.LawCaseMaterialUserControl" %>
<%@ Register Src="../LawCaseLeftMenu/LawCaseLeftMenuUserControl.ascx" TagName="LeftMenuUserControl"
    TagPrefix="uc1" %>
<script type="text/javascript">

    $(document).ready(function () {


    });

    function RedirectToViewLawCaseMaterial(sender, CaseId) {
        sender.href = "LawCaseMaterialDetails.aspx?CaseId=" + CaseId;
        return false;
    }

    function RedirectToCreateLawCaseMaterial(sender) {
        sender.href = "CreateLawCaseMaterial.aspx";
        return false;
    }

   
</script>
<div>
    <table class="main">
        <tr>
            <td valign="top" width="25%" runat="server" id="tdLeftMenu">
                <uc1:LeftMenuUserControl ID="LeftMenuUserControl1" runat="server" />
            </td>
               <td valign="top" width="75%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td width="60%">
                                        <h2 class="title">
                                            <asp:Label ID="lblTitle" runat="server" Text="扣押冻结物品情况一览表"></asp:Label>
                                        </h2>
                                    </td>
                                    <td align="right" width="40%">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%">
                                    </td>
                                    <td align="right" width="40%">
                                        <img src="/_layouts/JM.JCY.Resource/images/plus.png" width="12" />
                                        <asp:LinkButton ID="lkbCreateLawCaseMaterial" runat="server" Text="创建新纪录" OnClientClick="RedirectToCreateLawCaseMaterial(this)">
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                            <hr id="hr1" />
                            <table width="100%">
                                <tr>
                                    <td width="100%">
                                        <div id="content">
                                            <asp:GridView ID="gvBC" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                                                GridLines="Horizontal" CssClass="altrowstablebc" OnRowDataBound="gvBC_DataBound"
                                                Width="100%" EnableModelValidation="True">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="填表年度">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lbCaseYear" runat="server" Text='<%#Eval("Year")%>' OnClientClick='<%# String.Format("RedirectToViewLawCaseMaterial({0},{1})","this",Eval("ID")) %>'></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="25%" />
                                                        <ItemStyle Width="25%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="填表部门">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblInitial" runat="server" Text='<%# Eval("FillDept") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="15%" />
                                                        <ItemStyle Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="填表人">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblOperate" runat="server" Text='<%# Eval("Filler") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="15%" />
                                                        <ItemStyle Width="15%" />
                                                    </asp:TemplateField>

                                                </Columns>
                                            </asp:GridView>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            </tr>
    </table>
</div>
